﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<KabiManagementWeb.Models.Statistic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Thống kê thu chi</h2>
    <hr />
    <table><tr><td><% using (Html.BeginForm())
       {%>
    Xem :
    <%=Html.DropDownList("time", (SelectList)ViewData["Time"], new { onchange = "this.form.submit()" })%>
    <%} %></td>
    <td><%     using (Html.BeginForm("ViewDate"))
           {%>
    <%=Html.TextBox("date1","",new {name="date1"})%> <input type="submit" name="name" value="Xem thống kê" />
      
    <%} %></td>
    </tr></table>
    
    <hr />
    <table border="0" cellpadding="0" cellspacing="5" width="100%" style="font-size: 14px;">
        <tr>
            <td>
                Tổng Thu :<span class="money"><%= Html.Encode(String.Format("{0:0,0}", Model.TotalAmount)) %>
                    VNĐ</span>
            </td>
            <td>
                Tổng Chi : <span class="money">
                    <%= Html.Encode(String.Format("{0:0,0}", Model.TotalSpend)) %>VNĐ</span>
            </td>
            <td>
                Lãi : <span class="money">
                    <%= Html.Encode(String.Format("{0:0,0}", Model.TotalAmount - Model.TotalSpend))%>VNĐ</span>
            </td>
        </tr>
        <tr>
            <td>
                Tổng thu dịch vu ăn uống :<span class="money"><%= Html.Encode(String.Format("{0:0,0}", Model.TotalFoodAmount)) %>
                    VNĐ</span>
            </td>
            <td>
                Tổng thu dich vụ kinh doanh: <span class="money">
                    <%= Html.Encode(String.Format("{0:0,0}", Model.TotalProductAmount)) %>VNĐ</span>
            </td>
            <td>
                Tổng nhập kho : <span class="money">
                    <%= Html.Encode(String.Format("{0:0,0}", Model.TotalImport))%>VNĐ</span>
            </td>
        </tr>
        <tr>
            <td>
                Tổng chi phụ phí :<span class="money"><%= Html.Encode(String.Format("{0:0,0}", Model.TotalExport)) %>
                    VNĐ</span>
            </td>
            <td>
               Tổng tiền quỹ công đoàn :
              <span class="money">   <%= Html.Encode(String.Format("{0:0,0}", ViewData["Funds"])) %> VNĐ</span>
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptZone" runat="server">
    <script type="text/javascript">

        $(function () {
            $('.date-pick').datePicker({ autoFocusNextInput: true }).val(new Date().asString()).trigger('change');
        });
    </script>
</asp:Content>
